import express from "express";

// 用户类控制器
import Menu from "../controller/menu/menu";
const menuController = new Menu();

const Router = express.Router();

Router
  .get("/allTree", menuController.allTree)
  .get("/tree", menuController.tree)
  .get("/check", menuController.check)
  .get("/remove", menuController.remove)
  .post("/add", menuController.add)
  .post("/update", menuController.update);

export default Router;
